basepath=$(cd `dirname $0`; pwd)
echo ${basepath}

cd ${basepath}

if [ -d ./emccbuild ];then 
    rm -rf emccbuild
fi

mkdir emccbuild

cd ${basepath}/emccbuild

pwd

cmake -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake ../

make -j8

cd EyerColorSpace

emrun --no_browser --port 8080 index.html